package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.ArticleImage;
import com.caigou.pojo.ArticleImageData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

//@Mapper
//@Repository("ArticleImageMapper")
public interface ArticleImageMapper {
    void saveArticleImageData(ArticleImage articleImage);

    List<ArticleImageData> loadArticleImageData(@Param("articleId") String articleId);

    int updateArticleImageData(ArticleImage articleImage);

    int deleteArticleImageData(@Param("id") Integer id);

    int deleteArticleImageByArticleId(@Param("articleId") String articleId);

}